package com.matt.repository.notice;

import com.matt.domain.Notice.Notice;
import com.matt.domain.record.LiveRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;
import java.util.List;


public interface NoticeRepository extends JpaRepository<Notice, String> , JpaSpecificationExecutor<Notice> {

    List<LiveRecord> findByOperatorIdAndDeletedAndCreatedBetween(String staffId, Boolean deleted, Date begin, Date end);

    List<LiveRecord> findByOperatorIdAndDeleted(String staffId, Boolean deleted);

}
